/*
 * Created by LiuYou on 2020/12/14.
 *
 */

#include <iostream>
#include "computer/Computer.hpp"
#include "computer/AocDisplay.hpp"
#include "computer/NvidiaGraphicsCard.hpp"


int main() {

    // 错误
/*    Computer::Computer computer(new Display::AocDisplay(100, "满意vs"),
                                new GraphicsCard::NvidiaGraphicsCard(100, 4, "渲染效果好vs"));*/

    Computer::Computer computer(std::make_shared<Display::AocDisplay>(100, "满意vs"),
                                std::make_shared<GraphicsCard::NvidiaGraphicsCard>(100, 4, "渲染效果好vs"));

    computer.getDisplay()->show();

/*    GraphicsCard::GraphicsCard* graphicsCard = new GraphicsCard::NvidiaGraphicsCard(100, 4, "显卡vs");
    graphicsCard->show();
    delete graphicsCard;*/


    return 0;
}